package com.bestcem.xm.ticket.dao;

import com.bestcem.xm.ticket.entity.mongo.NotifySetting;

import java.util.List;

/**
 * @author gy.liu
 * @version 1.0
 * @date 2021/8/18 19:45
 **/
public interface TicketNotifySettingDao {

    /**
     * 根据公司ID获取提醒设置
     *
     * @param orgId
     * @return NotifySetting
     * @version v1.0
     * @author gy.liu
     * @date 2021/8/18
     */
    NotifySetting findByOrgId(String orgId);


    /**
     * @param orgId
     * @return
     * @author liheng
     * @date 2021/9/2 18:26
     */
    NotifySetting findByIdAndOrgId(String id,String orgId);

    /**
     * 保存提醒设置
     *
     * @param notifySetting
     * @return NotifySetting
     * @version v1.0
     * @author gy.liu
     * @date 2021/8/18
     */
    NotifySetting saveNotifySetting(NotifySetting notifySetting);

    /**
     * 修改提醒设置
     *
     * @param orgId
     * @param notifySetting
     */
    NotifySetting upsertSetting(String orgId, NotifySetting notifySetting);

    /**
     * 删除提醒设置
     *
     * @param id
     * @return
     * @author liheng
     * @date 2021/8/26 21:46
     */
    Long deleteEntity(String id);

    /**
     * 根据orgId和ids删除提醒设置
     *
     * @param idList
     * @param orgId
     * @return
     * @author liheng
     * @date 2021/8/26 21:46
     */
    Long deleteByIdsAndOrgId(List<String> idList, String orgId);

}
